package com.itheima.service;

import com.itheima.dao.GoodsDao;
import com.itheima.vo.GoodsSumVo;
import com.itheima.vo.GoodsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author itheima
 * @since 2021-10-25
 */
@Service("goodsService")
public class GoodsServiceImpl implements GoodsService {

    @Autowired
    private GoodsDao goodsDao;

    @Override
    public List<GoodsVo> getAll() {
        return goodsDao.getAll();
    }

    @Override
    public List<GoodsSumVo> getByGroup() {
        return goodsDao.getByGroup();
    }
}
